/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.shop.entity.category;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 乐购分类颜色Entity
 * @author 罗天文
 * @version 2018-05-15
 */
public class HkShopCategoryColor extends DataEntity<HkShopCategoryColor> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 颜色名称
	private HkShopCategory category;		// 分类id
	
	public HkShopCategoryColor() {
		super();
	}

	public HkShopCategoryColor(String id){
		super(id);
	}

	@Length(min=0, max=32, message="颜色名称长度必须介于 0 和 32 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public HkShopCategory getCategory() {
		return category;
	}

	public void setCategory(HkShopCategory category) {
		this.category = category;
	}
	
}